﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Microsoft.Practices.Unity;
using Tencent.OA.ACM.Service.Interface;
using Tencent.OABanche.App;
using Tencent.OA.ACM.Entity;
using Tencent.OA.App;
using Tencent.OA.ACM.Proxy;
using System.Web.Script.Serialization;
using System.Threading;

namespace Tencent.OA.ACM.App.Controllers
{
    [HandleError]
    public class ApplicationController : BaseController
    {
        #region
        private TeamInfoProxy teamProxy = new TeamInfoProxy();
        private AppInfoProxy appProxy = new AppInfoProxy();
        #endregion
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public ActionResult Index(Guid appId)
        {
            AppInfo appInfo = appProxy.GetModel(appId);
            TeamInfo teamInfo = teamProxy.GetModel(appInfo.Team);
            ViewData["appInfo"] = appInfo;
            ViewData["teamInfo"] = teamInfo;
            return View();
        }
       
    }
}
